package com.sunxd.rule.judge.beans.param;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Map;

@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class Condition implements Serializable {
    private static final long serialVersionUID = 6787834377679192109L;
//   /**
//    * 值类型
//    */
//    private ConditionType conditionType;
    /**
     * @
     * 条件类型  @See  OperatorTypeEnum
     */
    private String operatorType;

    /**
     * 当前值
     */
    private Object left;

    /**
     * xx配置的值
     */
    private Object right;

    // ------------------SPI扩展时使用-----------------------------------
    /**
     * 扩展时自定义的处理类key
     */
    private String invokeKey;
    /**
     * 扩展时自定义的参数
     */
    private Map<Object,Object> paramMap;
}
